package com.sakura.pattern.pipelinePattern;/**
 * Created by apple on 2019/4/22.
 */

/**
 * @author jixd
 * @Description TODO
 * @Date 2019/4/22 11:06 AM
 * @Version 1.0
 **/
public class Main {
    public static void main(String[] args) {
        String handling="aabb1122zzyy";
        StandardPipeline pipeline = new StandardPipeline();
        BasicValve basicValve = new BasicValve();
        SecondValve secondValve = new SecondValve();
        ThirdValve thirdValve = new ThirdValve();
        pipeline.setBasic(basicValve);
        pipeline.addValve(secondValve);
        pipeline.addValve(thirdValve);
        pipeline.getFirst().invoke(handling);
    }
}
